package com.ant.boot.component;

import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

@Component
public class ComponentB {
    public void hello(){
        System.out.println("hello---B");
    }
    @Bean
    public ComponentF componentF(){
        return new ComponentF();
    }
}
